home *** CD-ROM | disk | FTP | other *** search
- <?
- /**
- * File translationutf8.class.php
- *
- * @package Translation
- */
- /**
- * require base class
- */
- require_once 'Translation'.DIRECTORY_SEPARATOR.'translation.class.php';
-
- /**
- * class that allows using Translation class with UTF-8 DB encoding
- * @package Translation
- */
- class TTranslationUTF8 extends Translation
- {
- function TTranslationUTF8($PageName, $LanguageID, $pear_DSN, $CustomTables = 0)
- {
- $this->Translation($PageName, $LanguageID, $pear_DSN, $CustomTables);
- }
-
- function gstr($StringName, $Params = array())
- {
- return utf8_decode(parent::gstr($StringName, $Params));
- }
- }
- ?>